package com.neuedu.corejava.ch7.homework2;

import java.util.Random;

public class Test {

	public static void main(String[] args) {
		/*
		English stu = new English(100, "李雷", '男', 20,  80, 90, 90);
		stu.show();
		Computer stu1=new Computer(101, "马化腾", '男', 40, 20, 20, 20, 20);
		stu1.show();
		Chinese stu2=new Chinese(102, "蓝小蓝", '男', 40, 20, 20, 20, 20);
		stu2.show();
		*/

		
		Random r1=new Random();
		Student[] stu=new Student[3];
		stu[0] = new English(100, "王二", '男',20,r1.nextInt(100), r1.nextInt(100),r1.nextInt(100));
		stu[0].show();
		stu[1] = new Computer(101, "小兰", '女',21, r1.nextInt(100), r1.nextInt(100),r1.nextInt(100),r1.nextInt(100));
		stu[1].show();
		stu[2] = new Chinese(102, "小维", '女',22, r1.nextInt(100), r1.nextInt(100),r1.nextInt(100),r1.nextInt(100));
		stu[2].show();
		
	}

}
